import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:domain/model/projects_domain_model.dart';
import 'package:equatable/equatable.dart';

part 'state.g.dart';

@CopyWith()
class ProjectsState extends Equatable {
  final bool isLoading;
  final int totalCount;
  final List<Project> list;

  factory ProjectsState.init() =>
      ProjectsState(isLoading: true, totalCount: 0, list: []);

  @override
  List<Object> get props => [isLoading, totalCount, list];

  const ProjectsState({
    required this.isLoading,
    required this.totalCount,
    required this.list,
  });
}
